package com.lee.pullrefresh.http.test;

import java.util.ArrayList;
import java.util.List;

import android.text.TextUtils;

import com.google.gson.Gson;
import com.google.gson.reflect.TypeToken;

public class GetTestData {
	public int id;
	public String cd;
	
	public GetTestData(){
		
	}
	
		
	public int df;
	public String sn;
	public int status;
	public int uid;
	public String amount;
	public String product_amount;
	public String discount;
	public String freight;
	public int province;
	public int city;
	public int area;
	public int part;
	public String address;
	public String linkman;
	public String linkphone;
	public String date;
	public String note;
	public int isbill;
	public List<GetTestData> product_list;
	
	public static List<GetTestData> getMyOrderLists(String s){
		Gson gson = new Gson();
		List<GetTestData> myOrderLists= new ArrayList<GetTestData>();
		if (!TextUtils.isEmpty(s)) {
			myOrderLists =  gson.fromJson(s, new TypeToken<List<GetTestData>>(){}.getType());
			
		}
		return myOrderLists;
	}
}
